package com.lhc.bean.lifecycle;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.stereotype.Component;

/**
 * @author LuHuanCheng
 * 类说明：
 */
@Component
public class DestroyBean implements DisposableBean {
    @Override
    public void destroy() {
        System.out.println("bean销毁，实现DisposableBean接口的类被调用");
    }
}